﻿@model WebUI.Models.Tables.ProductCategory
@{
    ViewBag.Title = ViewBag.CurrentTitle + "商品分类";
}
@section head{
    <link href="~/Areas/Admin/Content/table.css" rel="stylesheet" />
}
@using (Html.BeginForm("Edit", "ProductCategory", new { current = 4 }))
{
    @Html.AntiForgeryToken()
    @Html.HiddenFor(m => m.ID)
    @Html.HiddenFor(m => m.CreateDateTime)
    <table class="admin-table" border="1">
        <thead>
            <tr>
                <td class="name">名称</td>
                <td class="context">内容</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="name">@Html.DisplayNameFor(m => m.CatName)</td>
                <td class="context">@Html.EditorFor(m => m.CatName)</td>
            </tr>
            <tr>
                <td class="name">@Html.DisplayNameFor(m => m.UniqueID)</td>
                <td class="context">@Html.EditorFor(m => m.UniqueID)</td>
            </tr>
            <tr>
                <td class="name">@Html.DisplayNameFor(m => m.ParentID)</td>
                <td class="context">@Html.Action("ListView", new { id = Model.ParentID })</td>
            </tr>
            <tr>
                <td class="name">@Html.DisplayNameFor(m => m.Keywords)</td>
                <td class="context">@Html.EditorFor(m => m.Keywords)</td>
            </tr>
            <tr>
                <td class="name">@Html.DisplayNameFor(m => m.Description)</td>
                <td class="context">@Html.EditorFor(m => m.Description)</td>
            </tr>
            <tr>
                <td class="name">@Html.DisplayNameFor(m => m.Sort)</td>
                <td class="context">@Html.EditorFor(m => m.Sort)</td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="submit" value="提交" />
                    <input type="button" value="返回" onclick="history.go(-1);" />
                </td>
            </tr>
        </tbody>
    </table>
}